﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Distancepaylist.aspx.cs" Inherits="Admin_manage_wechatOrderFeeConfigfeerule" %>

<%@ Register Src="~/Admin/Banner.ascx" TagName="TogoBanner" TagPrefix="uc1" %>
<%@ Register Src="~/Admin/Foot.ascx" TagName="Foot" TagPrefix="uc2" %>
<%@ Register Src="~/Admin/Adleft.ascx" TagName="left" TagPrefix="uc3" %>
<%@ Register TagPrefix="epc" Namespace="Hangjing.Control" Assembly="Hangjing.Control" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
    <title>微信订单配送费-<%= WebUtility.GetMyName() %></title>
    <link href="../css/reset.css" rel="stylesheet" type="text/css" />
    <link href="../css/menu.css" rel="stylesheet" type="text/css" />
    <link href="../css/boxes.css" rel="stylesheet" type="text/css" />
    <link href="../css/divDialog.css" rel="stylesheet" type="text/css" />
    <link href="../css/Common.css" rel="stylesheet" type="text/css" />
    <link href="../css/building.css" rel="stylesheet" type="text/css" />

    <link href="../css/time.css" rel="stylesheet" type="text/css" />

    <script src="../javascript/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="../javascript/Common.js" type="text/javascript"></script>

    <script src="../javascript/ShowDivDialog.js" type="text/javascript"></script>

    <script type="text/javascript" src="../javascript/DatePicker/WdatePicker.js"></script>
    <script src="../javascript/time.js" type="text/javascript"></script>

    <script type="text/javascript">

        function basedistanceblur() {
            $("#lbbasedistance").html($("#tbbasedistance").val());
        }

        function seconddistancblur() {
            $("#lbseconddistanc").html($("#tbseconddistance").val());
        }

        function init() {
            basedistanceblur();
            seconddistancblur();
        }

        $(document).ready(function () { init(); });

    </script>

</head>
<body>
    <form id="form1" runat="server">
        <epc:Hint ID="Hint1" runat="server" HintImageUrl="../images/Control" />
        <div class="wrapper">
            <!--banner start-->
            <uc1:TogoBanner runat="server" ID="Banner" />
            <!--banner end-->
            <!--center start-->
            <div class="middle" id="anchor-content">
                <div id="page:main-container">
                    <div class="columns ">
                        <div class="side-col" id="page:left">
                            <uc3:left runat="server" ID="left" />
                        </div>
                        <div class="main-col" id="content">
                            <asp:ScriptManager ID="ScriptManager1" runat="server">
                            </asp:ScriptManager>
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <div class="main-col-inner">
                                        <div id="divMessages">
                                        </div>

                                         <ul id="diagram_tab" class="tabs-horiz" style="border-bottom: none">
                                            <li><a href="ShopDetail.aspx?id=<%= Request["tid"] %>" class="tab-item-link ">
                                                <span><span class="changed"></span><span class="error"></span>商家信息</span> </a>
                                            </li>

                                            <li><a href="deliverfeerule.aspx?tid=<%= Request["tid"] %>" class="tab-item-link "><span>
                                                <span class="changed"></span><span class="error"></span>配送员配送费规则</span> </a></li>


                                             <li><a href="feerule_1.aspx?tid=<%= Request["tid"] %>" class="tab-item-link "><span>
                                                <span class="changed"></span><span class="error"></span>旧配送费规则</span> </a></li>

                                             <li><a href="Distancepaylist.aspx?tid=<%= Request["tid"] %>" class="tab-item-link active"><span>
                                                <span class="changed"></span><span class="error"></span>微信配送费规则</span> </a></li>



                                            <li><a href="ShopLocal.aspx?tid=<%= Request["tid"] %>" class="tab-item-link "><span>
                                                <span class="changed"></span><span class="error"></span>地图定位</span> </a></li>

                                        </ul>


                                        <div style="visibility: visible;" class="content-header">
                                            <h3 class="icon-head head-customer">

                                                  <asp:Button ID="Button2" runat="server" CssClass="button_1" OnClick="resume_Click"  OnClientClick="return confirm('确认要还原吗？')"
                                                        Text="还原为商家默认配置"></asp:Button>


                                                <asp:Label runat="server" ID="pageType"></asp:Label></h3>
                                            <div style="width: 0px; height: 17px;" class="content-buttons-placeholder">
                                                <p style="" class="content-buttons form-buttons">

                                                    <asp:Button ID="Button1" runat="server" CssClass="button_1" OnClientClick="gourl('citylist.aspx');return false;"
                                                        Text="返回"></asp:Button>


                                                    <asp:Button ID="btSave" runat="server" CssClass="button_1" OnClick="btSave_Click"
                                                        Text="保存"></asp:Button>



                                                </p>
                                            </div>
                                        </div>
                                        <!--start-->
                                        <div class="entry-edit">
                                            <div id="customer_info_tabs_account_content" style="">
                                                <div class="entry-edit">
                                                    <div class="entry-edit-head">
                                                        <h4 class="icon-head head-billing-address">微信订单配送费</h4>
                                                    </div>
                                                    <fieldset class="np">
                                                        <div class="order-address" id="order-billing_address_fields">
                                                            <div class="content">
                                                                <div class="hor-scroll">
                                                                    <table class="form-list" cellspacing="0">
                                                                        <tbody>



                                                                          
                                                                            <tr>
                                                                                <td class="value">
                                                                                    <epc:TextBox ID="tbbasedistance" runat="server" onblur="basedistanceblur()" CanBeNull="必填" RequiredFieldType="正整数" class=" required-entry input-text" name="invalue" Width="60px"></epc:TextBox>公里内，
                                                                                    每单<epc:TextBox ID="tbbasedistanceprice" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" class=" required-entry input-text" name="invalue" Width="60px"></epc:TextBox>元
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="value">

                                                                                    <label id="lbbasedistance" style="color: red; font-weight: bold">--</label>公里-
                                                                                    <epc:TextBox ID="tbseconddistance" onblur="seconddistancblur()" runat="server" CanBeNull="必填" RequiredFieldType="正整数" class="required-entry input-text"
                                                                                        name="invalue" Width="60px"></epc:TextBox>公里之间，每公里增加
                                                                                    <epc:TextBox ID="tbseconddistancePerPrice" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" class=" required-entry input-text" name="invalue" Width="60px"></epc:TextBox>
                                                                                    元
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="value">超出<label id="lbseconddistanc" style="color: red; font-weight: bold">--</label>公里后，每公里加
                                                                                    <epc:TextBox ID="tbthirdDistancePerPrice" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" class=" required-entry input-text" name="invalue" Width="60px"></epc:TextBox>元
                                                                                </td>
                                                                            </tr>

                                                                            <tr >
                                                                                <td style="color: #ff6a00; font-size: 16px;">夜间服务费：</td>
                                                                            </tr>
                                                                             <tr >
                                                                                <td>
                                                                                    <epc:TextBox runat="server" ID="tbstarttime1" Width="80px" onfocus="timeinit('tbstarttime1');" class="required-entry input-text"></epc:TextBox>
                                                                                    至<epc:TextBox runat="server" ID="tbendtime1" Width="80px" onfocus="timeinit('tbendtime1');" class="required-entry input-text"></epc:TextBox>,每单加
                                                                                    <epc:TextBox ID="tbreveint1" runat="server" CanBeNull="必填" RequiredFieldType="正整数" class=" required-entry input-text" name="invalue" Width="60px" Text="0"></epc:TextBox>元</td>
                                                                            </tr>
                                                                             <tr>
                                                                                <td>
                                                                                    <epc:TextBox runat="server" ID="tbstarttime2" Width="80px" onfocus="timeinit('tbstarttime2');" class="equired-entry input-text"></epc:TextBox>至
                                                                                <epc:TextBox runat="server" ID="tbendtime2" Width="80px" onfocus="timeinit('tbendtime2');" class="required-entry input-text"></epc:TextBox>,每单加
                                                                                    <epc:TextBox ID="tbreveint2" runat="server" CanBeNull="必填" RequiredFieldType="正整数" class=" required-entry input-text" name="invalue" Width="60px" Text="0"></epc:TextBox>元</td>
                                                                            </tr>
                                                                        </tbody>
                                                                    </table>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </fieldset>
                                                </div>
                                            </div>
                                        </div>
                                        <!--end-->
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </div>
                    </div>
                </div>
            </div>
            <!--foot start-->
            <uc2:Foot runat="server" ID="FootUC" />
            <!--foot end-->
        </div>
        <div style="display: none; left: 526px; top: 236px;" id="address_drop">
        </div>
        <div class="time_div" id="timediv" style="display: none">
            <div class="time_div_top">
            </div>
            <div class="time_div_con">
                <div style="clear: both; font-size: 12px; border-bottom: 1px solid #ccc; padding-left: 10px; padding-bottom: 5px;">
                    <h1 style="float: right; padding-right: 5px; cursor: pointer; font-size: 12px;" onclick="$('#timediv').hide()">关闭</h1>
                    请选择时间
                </div>
                <div class="con_left">
                    <h1>时
                    </h1>
                    <div style="border-right: 2px solid #CCC; height: 110px;">
                        <ul class="key_ul">
                            <li onclick="sethour(this)">0</li>
                            <li onclick="sethour(this)">1</li>
                            <li onclick="sethour(this)">2</li>
                            <li onclick="sethour(this)">3</li>
                            <li onclick="sethour(this)">4</li>
                            <li onclick="sethour(this)">5</li>
                            <li onclick="sethour(this)">6</li>
                            <li onclick="sethour(this)">7</li>
                            <li onclick="sethour(this)">8</li>
                            <li onclick="sethour(this)">9</li>
                            <li onclick="sethour(this)">10</li>
                            <li onclick="sethour(this)">11</li>
                            <li onclick="sethour(this)">12</li>
                            <li onclick="sethour(this)">13</li>
                            <li onclick="sethour(this)">14</li>
                            <li onclick="sethour(this)">15</li>
                            <li onclick="sethour(this)">16</li>
                            <li onclick="sethour(this)">17</li>
                            <li onclick="sethour(this)">18</li>
                            <li onclick="sethour(this)">19</li>
                            <li onclick="sethour(this)">20</li>
                            <li onclick="sethour(this)">21</li>
                            <li onclick="sethour(this)">22</li>
                            <li onclick="sethour(this)">23</li>
                        </ul>
                    </div>
                </div>
                <div class="con_right">
                    <h1>分</h1>
                    <ul class="key_ul" style="margin-left: 7px;">
                        <li onclick="setminute(this)">00</li>
                        <li onclick="setminute(this)">15</li>
                        <li onclick="setminute(this)">30</li>
                        <li onclick="setminute(this)">45</li>
                    </ul>
                </div>
            </div>
            <div class="time_div_bottom">
            </div>
        </div>

    </form>
</body>
</html>
